<?php /* Smarty version Smarty-3.1.6, created on 2013-04-07 14:35:05
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/Adjust/detail.tpl" */ ?>
<?php /*%%SmartyHeaderCode:72202311951611399cd4323-75663640%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b852266e2b8b52507d057a44ca894ac203617cb4' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/Adjust/detail.tpl',
      1 => 1364183647,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '72202311951611399cd4323-75663640',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'rs' => 0,
    'lang' => 0,
    'index' => 0,
    'none' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_51611399eab39',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51611399eab39')) {function content_51611399eab39($_smarty_tpl) {?><?php if (!is_callable('smarty_block_detail_table')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/block.detail_table.php';
?><?php $_smarty_tpl->smarty->_tag_stack[] = array('detail_table', array('flow'=>'adjust','from'=>$_smarty_tpl->tpl_vars['rs']->value['detail'],'action'=>array('view','edit'),'op_show'=>array('add','edit'),'warehouse'=>true,'thead'=>array($_smarty_tpl->tpl_vars['lang']->value['product_no'],$_smarty_tpl->tpl_vars['lang']->value['product_name'],'flow_config',$_smarty_tpl->tpl_vars['lang']->value['price'],$_smarty_tpl->tpl_vars['lang']->value['money'],'flow_multi_storage','flow_mantissa'))); $_block_repeat=true; echo smarty_block_detail_table(array('flow'=>'adjust','from'=>$_smarty_tpl->tpl_vars['rs']->value['detail'],'action'=>array('view','edit'),'op_show'=>array('add','edit'),'warehouse'=>true,'thead'=>array($_smarty_tpl->tpl_vars['lang']->value['product_no'],$_smarty_tpl->tpl_vars['lang']->value['product_name'],'flow_config',$_smarty_tpl->tpl_vars['lang']->value['price'],$_smarty_tpl->tpl_vars['lang']->value['money'],'flow_multi_storage','flow_mantissa')), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

<tr index="<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
" class="<?php echo $_smarty_tpl->tpl_vars['none']->value;?>
" class="t_left">
	<input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][id]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
">
	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('id'=>"span_product",'class'=>"t_left",'view'=>"product_no",'width'=>"150",'tfoot_id'=>"total_product",'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['total_produc']))); $_block_repeat=true; echo smarty_block_td(array('id'=>"span_product",'class'=>"t_left",'view'=>"product_no",'width'=>"150",'tfoot_id'=>"total_product",'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['total_produc'])), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][product_id]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['product_id'];?>
" onchange="<?php if (C('product_color')==1){?>$.colorEnabled(this);<?php }?><?php if (C('product_size')==1){?>$.sizeEnabled(this);<?php }?>" jqproc  class="w120">
		<input type="text" name="temp[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][product_no]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['product_no'];?>
" url="<?php echo U('AutoComplete/product');?>
" jqac  class="w120">
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('id'=>"span_product",'class'=>"t_left",'view'=>"product_no",'width'=>"150",'tfoot_id'=>"total_product",'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['total_produc'])), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<td id="span_product_name" class="t_left"   width="150" >
	<?php echo $_smarty_tpl->tpl_vars['item']->value['product_name'];?>

	</td>
	
	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_color",'view'=>"color_name",'width'=>"80")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_color",'view'=>"color_name",'width'=>"80"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<span id="org_qn_data" style="display:none;"></span>
		<input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][color_id]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['color_id'];?>
">
		<input type="text" name="color_name" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['color_name'];?>
" url="<?php echo U('AutoComplete/color');?>
" <?php if (C('product_color')==1&&$_smarty_tpl->tpl_vars['rs']->value){?>where="<?php echo urlencode("id in(select color_id from product_color where product_id=".($_smarty_tpl->tpl_vars['item']->value['product_id']).")");?>
" jqac <?php }elseif(C('product_color')==1){?>disabled class="disabled"<?php }elseif(C('PRODUCT_FACTORY')!=10){?>jqac<?php }?>>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_color",'view'=>"color_name",'width'=>"80"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_size",'view'=>"size_name",'width'=>"80")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_size",'view'=>"size_name",'width'=>"80"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][size_id]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['size_id'];?>
">
		<input type="text" name="size_name" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['size_name'];?>
" url="<?php echo U('AutoComplete/size');?>
" <?php if (C('product_size')==1&&$_smarty_tpl->tpl_vars['rs']->value){?>where="<?php echo urlencode("id in(select size_id from product_size where product_id=".($_smarty_tpl->tpl_vars['item']->value['product_id']).")");?>
" jqac <?php }elseif(C('product_size')==1){?>disabled class="disabled"<?php }elseif(C('PRODUCT_FACTORY')!=1){?>jqac<?php }?>>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_size",'view'=>"size_name",'width'=>"80"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_quantity",'view'=>"edml_quantity",'width'=>"70",'class'=>"t_right",'tfoot'=>array('total_quantity'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_quantity']))); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_quantity",'view'=>"edml_quantity",'width'=>"70",'class'=>"t_right",'tfoot'=>array('total_quantity'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_quantity'])), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][quantity]" id="quantity" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_quantity'];?>
"  row_total>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_quantity",'view'=>"edml_quantity",'width'=>"70",'class'=>"t_right",'tfoot'=>array('total_quantity'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_quantity'])), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_capability",'view'=>"edml_capability",'width'=>"70",'class'=>"t_right",'tfoot_id'=>"total_capability")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_capability",'view'=>"edml_capability",'width'=>"70",'class'=>"t_right",'tfoot_id'=>"total_capability"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][capability]" id="capability" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_capability'];?>
"  row_total>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_capability",'view'=>"edml_capability",'width'=>"70",'class'=>"t_right",'tfoot_id'=>"total_capability"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_dozen",'view'=>"edml_dozen",'width'=>"70",'tfoot_id'=>"total_dozen")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_dozen",'view'=>"edml_dozen",'width'=>"70",'tfoot_id'=>"total_dozen"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][dozen]" id="dozen" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_dozen'];?>
" row_total>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_dozen",'view'=>"edml_dozen",'width'=>"70",'tfoot_id'=>"total_dozen"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_row_total",'view'=>"dml_sum_quantity",'tfoot'=>array('total_col_qn'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_sum_quantity']),'total_row_qn'=>'','width'=>"100",'class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_row_total",'view'=>"dml_sum_quantity",'tfoot'=>array('total_col_qn'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_sum_quantity']),'total_row_qn'=>'','width'=>"100",'class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<?php echo $_smarty_tpl->tpl_vars['item']->value['dml_sum_quantity'];?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_row_total",'view'=>"dml_sum_quantity",'tfoot'=>array('total_col_qn'=>''),'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_sum_quantity']),'total_row_qn'=>'','width'=>"100",'class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('view'=>"edml_price",'width'=>"70",'class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('view'=>"edml_price",'width'=>"70",'class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="text" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][price]" id="price" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['edml_price'];?>
" row_total_money>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('view'=>"edml_price",'width'=>"70",'class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('tfoot_id'=>"total_total_money",'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_money']),'tfoot'=>array('total_col_money'=>''),'total_row_money'=>'','class'=>"t_right")); $_block_repeat=true; echo smarty_block_td(array('tfoot_id'=>"total_total_money",'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_money']),'tfoot'=>array('total_col_money'=>''),'total_row_money'=>'','class'=>"t_right"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<?php echo $_smarty_tpl->tpl_vars['item']->value['dml_money'];?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('tfoot_id'=>"total_total_money",'tfoot_value'=>($_smarty_tpl->tpl_vars['rs']->value['detail_total']['dml_money']),'tfoot'=>array('total_col_money'=>''),'total_row_money'=>'','class'=>"t_right"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_multi_storage",'view'=>"w_name",'width'=>"110",'class'=>"t_left")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_multi_storage",'view'=>"w_name",'width'=>"110",'class'=>"t_left"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

	<?php echo smarty_function_warehouse(array('hidden'=>array("name"=>"detail[".($_smarty_tpl->tpl_vars['index']->value)."][warehouse_id]",'value'=>$_smarty_tpl->tpl_vars['item']->value['warehouse_id']),'value'=>$_smarty_tpl->tpl_vars['item']->value['w_name'],'name'=>"warehouse_name",'class'=>"w80"),$_smarty_tpl);?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_multi_storage",'view'=>"w_name",'width'=>"110",'class'=>"t_left"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('type'=>"flow_mantissa",'view'=>"dd_mantissa",'width'=>"50")); $_block_repeat=true; echo smarty_block_td(array('type'=>"flow_mantissa",'view'=>"dd_mantissa",'width'=>"50"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<input type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['item']->value['mantissa'])===null||$tmp==='' ? 1 : $tmp);?>
" name="detail[<?php echo $_smarty_tpl->tpl_vars['index']->value;?>
][mantissa]">
		<input type="checkbox" type="checkbox" onclick="$.setQuantityState(this);" <?php if ($_smarty_tpl->tpl_vars['item']->value['mantissa']==2){?>checked<?php }?> >
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('type'=>"flow_mantissa",'view'=>"dd_mantissa",'width'=>"50"), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php echo smarty_function_detail_operation(array(),$_smarty_tpl);?>

</tr>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_detail_table(array('flow'=>'adjust','from'=>$_smarty_tpl->tpl_vars['rs']->value['detail'],'action'=>array('view','edit'),'op_show'=>array('add','edit'),'warehouse'=>true,'thead'=>array($_smarty_tpl->tpl_vars['lang']->value['product_no'],$_smarty_tpl->tpl_vars['lang']->value['product_name'],'flow_config',$_smarty_tpl->tpl_vars['lang']->value['price'],$_smarty_tpl->tpl_vars['lang']->value['money'],'flow_multi_storage','flow_mantissa')), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

<?php }} ?>